
package View;

import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.UIManager;

public class Menu_Principal_1 extends javax.swing.JFrame {

    public Menu_Principal_1() {
        initComponents();
        maximizar();
        minimizar();
        lookAndFeel();
        this.setJMenuBar(barra_menu);
        icone();
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panel_completa = new javax.swing.JPanel();
        panel_menu = new javax.swing.JPanel();
        imagem_logo = new javax.swing.JLabel();
        panel_rodape = new javax.swing.JPanel();
        barra_menu = new javax.swing.JMenuBar();
        cadastros = new javax.swing.JMenu();
        menu_cadastro_cliente = new javax.swing.JMenuItem();
        menu_cadastro_funcionario = new javax.swing.JMenuItem();
        menu_cadastro_fornecedor = new javax.swing.JMenuItem();
        menu_cadastro_cargo = new javax.swing.JMenuItem();
        menu_cadastro_usuario = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        menu_cadastro_produto = new javax.swing.JMenuItem();
        menu_cadastro_secao = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JPopupMenu.Separator();
        menu_cadastro_estado = new javax.swing.JMenuItem();
        menu_cadastro_cidade = new javax.swing.JMenuItem();
        menu_cadastro_bairro = new javax.swing.JMenuItem();
        menu_cadastro_regiao = new javax.swing.JMenuItem();
        jSeparator3 = new javax.swing.JPopupMenu.Separator();
        menu_cadastro_cemiterio = new javax.swing.JMenuItem();
        jSeparator4 = new javax.swing.JPopupMenu.Separator();
        menu_cadastro_plano = new javax.swing.JMenuItem();
        jSeparator5 = new javax.swing.JPopupMenu.Separator();
        menu_cadastro_sair = new javax.swing.JMenuItem();
        consultas = new javax.swing.JMenu();
        relatorios = new javax.swing.JMenu();
        estoque = new javax.swing.JMenu();
        movimentacao = new javax.swing.JMenu();
        configuracao = new javax.swing.JMenu();
        informacao = new javax.swing.JMenu();
        sair = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Sistema de Gestão Funerária");

        panel_completa.setBackground(new java.awt.Color(255, 255, 255));
        panel_completa.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        panel_menu.setBackground(new java.awt.Color(204, 204, 255));
        panel_menu.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        javax.swing.GroupLayout panel_menuLayout = new javax.swing.GroupLayout(panel_menu);
        panel_menu.setLayout(panel_menuLayout);
        panel_menuLayout.setHorizontalGroup(
            panel_menuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        panel_menuLayout.setVerticalGroup(
            panel_menuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 74, Short.MAX_VALUE)
        );

        imagem_logo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Fe_logo.png"))); // NOI18N
        imagem_logo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);

        panel_rodape.setBackground(new java.awt.Color(153, 153, 255));
        panel_rodape.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        javax.swing.GroupLayout panel_rodapeLayout = new javax.swing.GroupLayout(panel_rodape);
        panel_rodape.setLayout(panel_rodapeLayout);
        panel_rodapeLayout.setHorizontalGroup(
            panel_rodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE)
        );
        panel_rodapeLayout.setVerticalGroup(
            panel_rodapeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 28, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout panel_completaLayout = new javax.swing.GroupLayout(panel_completa);
        panel_completa.setLayout(panel_completaLayout);
        panel_completaLayout.setHorizontalGroup(
            panel_completaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panel_menu, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addComponent(panel_rodape, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panel_completaLayout.createSequentialGroup()
                .addContainerGap(178, Short.MAX_VALUE)
                .addComponent(imagem_logo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(170, 170, 170))
        );
        panel_completaLayout.setVerticalGroup(
            panel_completaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panel_completaLayout.createSequentialGroup()
                .addComponent(panel_menu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(28, 28, 28)
                .addComponent(imagem_logo, javax.swing.GroupLayout.DEFAULT_SIZE, 356, Short.MAX_VALUE)
                .addGap(44, 44, 44)
                .addComponent(panel_rodape, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        cadastros.setText("Cadastros");

        menu_cadastro_cliente.setText("Cliente");
        menu_cadastro_cliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastro_clienteActionPerformed(evt);
            }
        });
        cadastros.add(menu_cadastro_cliente);

        menu_cadastro_funcionario.setText("Funcionário");
        menu_cadastro_funcionario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastro_funcionarioActionPerformed(evt);
            }
        });
        cadastros.add(menu_cadastro_funcionario);

        menu_cadastro_fornecedor.setText("Fornecedor");
        menu_cadastro_fornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastro_fornecedorActionPerformed(evt);
            }
        });
        cadastros.add(menu_cadastro_fornecedor);

        menu_cadastro_cargo.setText("Cargo");
        menu_cadastro_cargo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastro_cargoActionPerformed(evt);
            }
        });
        cadastros.add(menu_cadastro_cargo);

        menu_cadastro_usuario.setText("Usuário");
        menu_cadastro_usuario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastro_usuarioActionPerformed(evt);
            }
        });
        cadastros.add(menu_cadastro_usuario);
        cadastros.add(jSeparator1);

        menu_cadastro_produto.setText("Produto");
        menu_cadastro_produto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastro_produtoActionPerformed(evt);
            }
        });
        cadastros.add(menu_cadastro_produto);

        menu_cadastro_secao.setText("Seção");
        menu_cadastro_secao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastro_secaoActionPerformed(evt);
            }
        });
        cadastros.add(menu_cadastro_secao);
        cadastros.add(jSeparator2);

        menu_cadastro_estado.setText("Estado");
        menu_cadastro_estado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastro_estadoActionPerformed(evt);
            }
        });
        cadastros.add(menu_cadastro_estado);

        menu_cadastro_cidade.setText("Cidade");
        menu_cadastro_cidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastro_cidadeActionPerformed(evt);
            }
        });
        cadastros.add(menu_cadastro_cidade);

        menu_cadastro_bairro.setText("Bairro");
        menu_cadastro_bairro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastro_bairroActionPerformed(evt);
            }
        });
        cadastros.add(menu_cadastro_bairro);

        menu_cadastro_regiao.setText("Região");
        menu_cadastro_regiao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastro_regiaoActionPerformed(evt);
            }
        });
        cadastros.add(menu_cadastro_regiao);
        cadastros.add(jSeparator3);

        menu_cadastro_cemiterio.setText("Cemitério");
        menu_cadastro_cemiterio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastro_cemiterioActionPerformed(evt);
            }
        });
        cadastros.add(menu_cadastro_cemiterio);
        cadastros.add(jSeparator4);

        menu_cadastro_plano.setText("Tipo de Plano");
        menu_cadastro_plano.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastro_planoActionPerformed(evt);
            }
        });
        cadastros.add(menu_cadastro_plano);
        cadastros.add(jSeparator5);

        menu_cadastro_sair.setText("Sair");
        menu_cadastro_sair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                menu_cadastro_sairActionPerformed(evt);
            }
        });
        cadastros.add(menu_cadastro_sair);

        barra_menu.add(cadastros);

        consultas.setText("Consultas");
        barra_menu.add(consultas);

        relatorios.setText("Relatórios");
        barra_menu.add(relatorios);

        estoque.setText("Estoque");
        barra_menu.add(estoque);

        movimentacao.setText("Movimentação");
        barra_menu.add(movimentacao);

        configuracao.setText("Configuração");
        barra_menu.add(configuracao);

        informacao.setText("Informação");
        barra_menu.add(informacao);

        sair.setText("Sair");
        barra_menu.add(sair);

        setJMenuBar(barra_menu);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panel_completa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(panel_completa, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        setBounds(0, 0, 800, 600);
    }// </editor-fold>//GEN-END:initComponents

    private void menu_cadastro_clienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastro_clienteActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menu_cadastro_clienteActionPerformed

    private void menu_cadastro_funcionarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastro_funcionarioActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menu_cadastro_funcionarioActionPerformed

    private void menu_cadastro_fornecedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastro_fornecedorActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menu_cadastro_fornecedorActionPerformed

    private void menu_cadastro_cargoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastro_cargoActionPerformed
        new Cadastro_Cargo().setVisible(true);
    }//GEN-LAST:event_menu_cadastro_cargoActionPerformed

    private void menu_cadastro_usuarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastro_usuarioActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menu_cadastro_usuarioActionPerformed

    private void menu_cadastro_produtoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastro_produtoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menu_cadastro_produtoActionPerformed

    private void menu_cadastro_secaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastro_secaoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menu_cadastro_secaoActionPerformed

    private void menu_cadastro_estadoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastro_estadoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menu_cadastro_estadoActionPerformed

    private void menu_cadastro_cidadeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastro_cidadeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menu_cadastro_cidadeActionPerformed

    private void menu_cadastro_bairroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastro_bairroActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menu_cadastro_bairroActionPerformed

    private void menu_cadastro_regiaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastro_regiaoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menu_cadastro_regiaoActionPerformed

    private void menu_cadastro_cemiterioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastro_cemiterioActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menu_cadastro_cemiterioActionPerformed

    private void menu_cadastro_planoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastro_planoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menu_cadastro_planoActionPerformed

    private void menu_cadastro_sairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_cadastro_sairActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_menu_cadastro_sairActionPerformed

    private void maximizar(){
        super.setExtendedState(JFrame.MAXIMIZED_BOTH);
    }
    
    private void minimizar(){
        super.setLocationRelativeTo(null);
    }
    
    private void lookAndFeel(){
        
        try {
            UIManager.setLookAndFeel ("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
            SwingUtilities.updateComponentTreeUI(this);
            
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Menu_Principal_1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Menu_Principal_1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Menu_Principal_1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Menu_Principal_1.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
    }
    
    private void icone(){
        
        //CADASTROS
        menu_cadastro_cliente.setIcon(new ImageIcon(getClass().getResource("/Imagens/Cliente_24x24.png")));
        menu_cadastro_funcionario.setIcon(new ImageIcon(getClass().getResource("/Imagens/Funcionario_24x24.png")));
        menu_cadastro_fornecedor.setIcon(new ImageIcon(getClass().getResource("/Imagens/Fornecedor_24x24.png")));
        menu_cadastro_cargo.setIcon(new ImageIcon(getClass().getResource("/Imagens/Cargo_24x24.png")));
        menu_cadastro_usuario.setIcon(new ImageIcon(getClass().getResource("/Imagens/Usuario_24x24.png")));
        menu_cadastro_produto.setIcon(new ImageIcon(getClass().getResource("/Imagens/Produto_24x24.png")));
        menu_cadastro_secao.setIcon(new ImageIcon(getClass().getResource("/Imagens/Secao_24x24.png")));
        menu_cadastro_estado.setIcon(new ImageIcon(getClass().getResource("/Imagens/Estado_24x24.png")));
        menu_cadastro_cidade.setIcon(new ImageIcon(getClass().getResource("/Imagens/Cidade_24x24.png")));
        menu_cadastro_bairro.setIcon(new ImageIcon(getClass().getResource("/Imagens/Bairro_24x24.png")));
        menu_cadastro_regiao.setIcon(new ImageIcon(getClass().getResource("/Imagens/Regiao_24x24.png")));
        menu_cadastro_cemiterio.setIcon(new ImageIcon(getClass().getResource("/Imagens/Cemiterio_24x24.png")));
        menu_cadastro_plano.setIcon(new ImageIcon(getClass().getResource("/Imagens/Plano_24x24.png")));
        menu_cadastro_sair.setIcon(new ImageIcon(getClass().getResource("/Imagens/Exit_24x24.png")));
        
        //CONSULTAS
        
        //RELATÓRIOS
        
        //ESTOQUE
        
        //MOVIMENTAÇÕES
        
        //INFORMAÇÕES
        
        //CONFIGURAÇÕES
        
        //SAIR
    }
    
    
    public static void main(String args[]) {

        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Menu_Principal_1().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuBar barra_menu;
    private javax.swing.JMenu cadastros;
    private javax.swing.JMenu configuracao;
    private javax.swing.JMenu consultas;
    private javax.swing.JMenu estoque;
    private javax.swing.JLabel imagem_logo;
    private javax.swing.JMenu informacao;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JPopupMenu.Separator jSeparator2;
    private javax.swing.JPopupMenu.Separator jSeparator3;
    private javax.swing.JPopupMenu.Separator jSeparator4;
    private javax.swing.JPopupMenu.Separator jSeparator5;
    private javax.swing.JMenuItem menu_cadastro_bairro;
    private javax.swing.JMenuItem menu_cadastro_cargo;
    private javax.swing.JMenuItem menu_cadastro_cemiterio;
    private javax.swing.JMenuItem menu_cadastro_cidade;
    private javax.swing.JMenuItem menu_cadastro_cliente;
    private javax.swing.JMenuItem menu_cadastro_estado;
    private javax.swing.JMenuItem menu_cadastro_fornecedor;
    private javax.swing.JMenuItem menu_cadastro_funcionario;
    private javax.swing.JMenuItem menu_cadastro_plano;
    private javax.swing.JMenuItem menu_cadastro_produto;
    private javax.swing.JMenuItem menu_cadastro_regiao;
    private javax.swing.JMenuItem menu_cadastro_sair;
    private javax.swing.JMenuItem menu_cadastro_secao;
    private javax.swing.JMenuItem menu_cadastro_usuario;
    private javax.swing.JMenu movimentacao;
    private javax.swing.JPanel panel_completa;
    private javax.swing.JPanel panel_menu;
    private javax.swing.JPanel panel_rodape;
    private javax.swing.JMenu relatorios;
    private javax.swing.JMenu sair;
    // End of variables declaration//GEN-END:variables
}
